var frisby = require('frisby');

frisby.create('注册成功')
    .post('http://192.168.247.88:9090/hub/device/upload-reset-state',{
        'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
        'device-id':'092700B6-2E6F-45D7-B55D-AEFACED48DDC'//设备ID   不能为空
    })
    // .inspectJSON()
    .expectJSON({
      'result':{
        "value":'error',
        "info":'注册成功'
      }})
.toss()

frisby.create('注册失败')
    .post('http://192.168.247.88:9090/hub/device/upload-reset-state',{
        'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
        'device-id':'092700B6-2E6F-45D7-B55D-AEFACED48DDC'//设备ID   不能为空
      })
    // .inspectJSON()
    .expectJSON({
      'result':{
        "value":'error',
        "info":'注册失败'
      }})
.toss()
